package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.BilliardsGameEightBallMember;
import com.ruoyi.system.domain.vo.BilliardsGameEightBallMemberVo;
import org.apache.ibatis.annotations.Param;

/**
 * 中式八球比赛用户Mapper接口
 *
 * @author ruoyi
 * @date 2024-12-11
 */
public interface BilliardsGameEightBallMemberMapper {
    /**
     * 查询中式八球比赛用户
     *
     * @param id 中式八球比赛用户主键
     * @return 中式八球比赛用户
     */
    public BilliardsGameEightBallMember selectBilliardsGameEightBallMemberById(Long id);

    /**
     * 查询中式八球比赛用户列表
     *
     * @param billiardsGameEightBallMember 中式八球比赛用户
     * @return 中式八球比赛用户集合
     */
    public List<BilliardsGameEightBallMember> selectBilliardsGameEightBallMemberList(BilliardsGameEightBallMember billiardsGameEightBallMember);

    /**
     * 新增中式八球比赛用户
     *
     * @param billiardsGameEightBallMember 中式八球比赛用户
     * @return 结果
     */
    public int insertBilliardsGameEightBallMember(BilliardsGameEightBallMember billiardsGameEightBallMember);

    /**
     * 修改中式八球比赛用户
     *
     * @param billiardsGameEightBallMember 中式八球比赛用户
     * @return 结果
     */
    public int updateBilliardsGameEightBallMember(BilliardsGameEightBallMember billiardsGameEightBallMember);

    /**
     * 删除中式八球比赛用户
     *
     * @param id 中式八球比赛用户主键
     * @return 结果
     */
    public int deleteBilliardsGameEightBallMemberById(Long id);

    /**
     * 批量删除中式八球比赛用户
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBilliardsGameEightBallMemberByIds(Long[] ids);

    List<BilliardsGameEightBallMember> findCurGame(@Param("memberId") Long memberId, @Param("gameType") String gameType);

    List<BilliardsGameEightBallMemberVo> findByGameId(Long gameId);

    BilliardsGameEightBallMember findByGameIdAndTag(@Param("gameId") Long gameId, @Param("tag") String tag);

    void updateScore(@Param("gameId") Long gameId, @Param("tag") String tag, @Param("scoreMethod") String scoreMethod);

    void deleteByGameId(Long gameId);
}
